package com.mjh.model;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum CodeEnum {

    ERROR(-1, "失败"),
    SUCCESS(200, "成功"),
    NOT_FOUND(404, "未找到"),
    UNAUTHORIZED(401, "未授权"),
    FORBIDDEN(403, "禁止访问"),
    // 1000 - 1999 系统错误
    // 2000 - 2999 业务错误
    TOKEN_EMPTY(901,"令牌TOKEN为空"),
    TOKEN_INVALIDATE(902,"令牌TOKEN无效")
    ;

    private Integer code;
    private String desc;
}
